package com.example.JcGQS.WMS;

import com.example.JcGQS.pojo.dto.PersonalUseDTO;
import com.example.JcGQS.pojo.dto.ProjectAcceptanceDTO;
import com.example.JcGQS.pojo.dto.PutInStorageDTO;
import com.example.JcGQS.response.ResultUtil;
import com.github.lianjiatech.retrofit.spring.boot.core.RetrofitClient;
import org.apache.tomcat.util.http.parser.Authorization;
import org.springframework.stereotype.Repository;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Path;

@Repository
@RetrofitClient(baseUrl = "${wms.url}")
public interface WMSApi {
    /**
     * 个人领用
     */
    @POST("personal/use")
    ResultUtil personalUse(@Body PersonalUseDTO personalUseDTO) ;

    /**
     * 项目领用
     */
    @POST("project/acceptance")
    ResultUtil projectAcceptance( @Body ProjectAcceptanceDTO projectAcceptanceDTO);

    /**
     * 入库
     */
    @POST("put/in/storage")
    ResultUtil putInStorage(@Body PutInStorageDTO putInStorageDTO);
}
